import request from '@/utils/request'

// 查询参数接口
export interface FeedbackQuery {
  pageNum?: number
  pageSize?: number
  doctorId?: number | string
  status?: string
}

// 反馈数据接口
export interface FeedbackData {
  feedbackId: number
  doctorId: number
  content: string
  status: string
  handleNote?: string
  createTime?: string
  updateTime?: string
}

// 处理反馈参数接口
export interface HandleFeedbackParams {
  feedbackId: number
  handleNote: string
  status: string
}

// 查询反馈列表
export function listFeedback(query: FeedbackQuery) {
  return request({
    url: '/system/feedback/list',
    method: 'get',
    params: query
  })
}

// 处理反馈
export function handleFeedback(data: HandleFeedbackParams) {
  return request({
    url: '/system/feedback/handle',
    method: 'put',
    data: data
  })
}

// 删除反馈
export function delFeedback(feedbackId: number) {
  return request({
    url: '/system/feedback/' + feedbackId,
    method: 'delete'
  })
} 